<script setup lang="ts">
import { router } from '../router';

const toHome = () => {
    router.push('/home')
}
</script>

<template>
<div class="warp">
    <el-button @click="toHome">测试跳转</el-button>
</div>
</template>

<style scoped>
.warp {
    height: 100%;
    width: 100%;
}
</style>